<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>浑天仪效果</title>
</head>
<body>
	<div id="Tags"></div>
<script>
function getArgs(){
     var args = new Object();
     var query = location.search.substring(1);      // Get query string
     var pairs = query.split("&");                  // Break at ampersand
     for(var i = 0; i < pairs.length; i++) {
         var pos = pairs[i].indexOf('=');           // Look for "name=value"
         if (pos == -1) continue;                   // If not found, skip
         var argname = pairs[i].substring(0,pos); // Extract the name
         var value = pairs[i].substring(pos+1);     // Extract the value
         value = decodeURIComponent(value);         // Decode it, if needed
         args[argname] = value;                     // Store as a property
     }
     return args;                                   // Return the object
}
</script>
<script src="swfobject.js" type="text/javascript"></script>
<p>
  <script type="text/javascript">
   var size = getArgs()['size'];
   var rnumber = Math.floor(Math.random()*9999999);
   var cloud = new SWFObject("tagcloud.swf?r="+rnumber, "tagcloudflash", "300", "300", "9", "#ffffff");
   var temp="";
   var position;//记录分割符"☆"的位置
   var web_site_name=""
   var web_site_address="";
   var command="";
   var command_head="%3C%3Fxml+version%3D%271.0%27+encoding%3D%27utf-8%27%3F%3E%3Cbillboard%3E%3C";
   command=command+command_head;
   for(var i=1;i<=size;i++)
   {
			web_site_name = getArgs()['w'+i];
		  web_site_address="localhost:4180/ilib/getKeyWordResult.do?inputStr="+web_site_name;
		  command = command + "item+url%3D%27http%3A%2F%2F" + web_site_address + "%27+query%3D%27" + web_site_name+"%27+trend%3D%270%27+intro%3D%27%27+url1%3D%27%27%2F%3E%3C";
   }    
   var command_foot="%2Fbillboard%3E";
   command=command+command_foot; 
  cloud.addParam("wmode", "transparent");
  cloud.addParam("allowScriptAccess", "always");
  cloud.addVariable("data", command);
  cloud.write("Tags");
  </script>
  
</p>
</body>
</html>